/*
 * Created on 24.10.2003
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.exception;

/**
 * @author Denverash
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class FrameworkException extends Exception {

	private String message = "";
	private int error = 0;

	public FrameworkException() {
		super();
	}

	public FrameworkException(String _message) {
		setMessage(message);
	}

	public FrameworkException(int _error, String _message) {
		setError(error);
		setMessage(message);
	}

	public void setError(int error) {
		this.error = error;
	}

	/**
	 * @return
	 */
	public int getError() {
		return error;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return
	 */
	public String getMessage() {
		return message;
	}

}
